﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DAL
{
    public class Users
    {
        #region Variables
        /// <summary>
        /// User Registration Variables
        /// </summary>
        private int _UserID;
        private String _Created;
        private String _Updated;
        private String _Isactive;
        private String _UserName;
        private String _Password;
        private String _Email;
        private String _Phone;
        private String _Level;
        private String _Descriptions;
        private String _Block;
        private String _FullName;
        private String _Address;
        private String _IdentityCard;
        #endregion

        public Users()
        {
        }

        /// <summary>
        /// Gets or sets the <b>_UserID</b> attribute value.
        /// </summary>
        /// <value>The <b>_UserID</b> attribute value.</value>
        public int UserID
        {
            get
            {
                return _UserID;
                     
            }
            set
            {
                _UserID = value;
            }
        }
        /// <summary>
        /// Gets or sets the <b>_Created</b> attribute value.
        /// </summary>
        /// <value>The <b>_Created</b> attribute value.</value>
        public String Created
        {
            get
            {
                return String.Format("{0:d/M/yyyy HH:mm:ss}", _Created);

            }
            set
            {
                _Created = String.Format("{0:d/M/yyyy HH:mm:ss}", value);
            }
        }
        /// <summary>
        /// Gets or sets the <b>_Updated</b> attribute value.
        /// </summary>
        /// <value>The <b>_Updated</b> attribute value.</value>
        public String Updated
        {
            get
            {
                return String.Format("{0:d/M/yyyy HH:mm:ss}", _Updated);

            }
            set
            {
                _Updated = String.Format("{0:d/M/yyyy HH:mm:ss}", value);
            }
        }
        /// <summary>
        /// Gets or sets the <b>_Isactive</b> attribute value.
        /// </summary>
        /// <value>The <b>_Isactive</b> attribute value.</value>
        public String Isactive
        {
            get
            {

                return _Isactive;

            }
            set
            {
                _Isactive = value.Equals("1") ? "1" : "0";
            }
        }
        /// <summary>
        /// Gets or sets the <b>_UserName</b> attribute value.
        /// </summary>
        /// <value>The <b>_UserName</b> attribute value.</value>
        public String UserName
        {
            get
            {
                return _UserName;

            }
            set
            {
                _UserName = value;
            }
        }
        /// <summary>
        /// Gets or sets the <b>_Password</b> attribute value.
        /// </summary>
        /// <value>The <b>_Password</b> attribute value.</value>
        public String Password
        {
            get
            {
                return _Password;

            }
            set
            {
                _Password = value;
            }
        }
        /// <summary>
        /// Gets or sets the <b>_Email</b> attribute value.
        /// </summary>
        /// <value>The <b>_Email</b> attribute value.</value>
        public String Email
        {
            get
            {
                return _Email;

            }
            set
            {
                _Email = value;
            }
        }
        /// <summary>
        /// Gets or sets the <b>_Phone</b> attribute value.
        /// </summary>
        /// <value>The <b>_Phone</b> attribute value.</value>
        public String Phone
        {
            get
            {
                return _Phone;

            }
            set
            {
                _Phone = value;
            }
        }
        /// <summary>
        /// Gets or sets the <b>_Level</b> attribute value.
        /// </summary>
        /// <value>The <b>_Level</b> attribute value.</value>
        public String Level
        {
            get
            {
                return _Level;

            }
            set
            {
                _Level = value;
            }
        }
        /// <summary>
        /// Gets or sets the <b>_Descriptions</b> attribute value.
        /// </summary>
        /// <value>The <b>_Descriptions</b> attribute value.</value>
        public String Descriptions
        {
            get
            {
                return _Descriptions;

            }
            set
            {
                _Descriptions = value;
            }
        }
        /// <summary>
        /// Gets or sets the <b>_Block</b> attribute value.
        /// </summary>
        /// <value>The <b>_Block</b> attribute value.</value>
        public String Block
        {
            get
            {
                return _Block;

            }
            set
            {
                _Block = value;
            }
        }
        /// <summary>
        /// Gets or sets the <b>_FullName</b> attribute value.
        /// </summary>
        /// <value>The <b>_FullName</b> attribute value.</value>
        public String FullName
        {
            get
            {
                return _FullName;

            }
            set
            {
                _FullName = value;
            }
        }
        /// <summary>
        /// Gets or sets the <b>_Address</b> attribute value.
        /// </summary>
        /// <value>The <b>_Address</b> attribute value.</value>
        public String Address
        {
            get
            {
                return _Address;

            }
            set
            {
                _Address = value;
            }
        }
        /// <summary>
        /// Gets or sets the <b>_IdentityCard</b> attribute value.
        /// </summary>
        /// <value>The <b>_IdentityCard</b> attribute value.</value>
        public String IdentityCard
        {
            get
            {
                return _IdentityCard;

            }
            set
            {
                _IdentityCard = value;
            }
        }

    }
}
